Learn R Programming

SticsRFiles (version 1.4.0)

[.cropr_simulation: [ method for cropr_simulation

Description

This method ensure keeping the cropr_simulation attribute when subsetting a cropr_simulation list.

Usage

# S3 method for cropr_simulation
[(x, ...)

Value

A subset of a cropr_simulation, keeping its attribute

Arguments

x

A cropr_simulation list

...

An index

Examples

Run this code
path <- file.path(get_examples_path("sti"), "workspace1")
sim <- SticsRFiles::get_sim(workspace = path)
# sim returns a `cropr_simulation` list

Run the code above in your browser using DataLab